﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="QuanLyBangCap.aspx.cs" Inherits="ChamCong.Admin.QuanLyBangCap" %>



<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
        <style type="text/css">
        .style1
        {
            width: 350px;
            margin: 10px;
            float: left;
        }
        .style2
        {
            width: 450px;
            margin: 10px;
            float: right;
        }
        .style3
        {
            width: 120px;
        }
    </style>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        <asp:UpdatePanel ID="BangCap" runat="server" style="float: left">
            <ContentTemplate>
                <div class="style1">
                    <table style="width: 100%;">
                        <tr>
                            <td class="style3">
                                Mã 
                                Bằng Cấp :</td>
                            <td>
                                <asp:TextBox ID="txtMaBC" runat="server" Width="100%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Tên 
                                Bằng Cấp :</td>
                            <td>
                                <asp:TextBox ID="txtTenBC" runat="server" Width="100%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style3">
                                Mô tả :</td>
                            <td>
                                <asp:TextBox ID="txtMoTa" runat="server" Width="100%" Height="52px" 
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Button class="button" ID="btnThemBC" runat="server" Text="Thêm" Width="70px" 
                                    onclick="btnThemBC_Click" />
                                <asp:Button class="button" ID="btnUpdate" runat="server" Text="Sửa" Width="70px" 
                                    onclick="btnUpdate_Click" />
                                <asp:Button class="button" ID="btnCancel" runat="server" Text="Hủy" Width="70px" 
                                    onclick="btnCancel_Click"/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div>
                                    <sbc:sbcMsgBox ID="sbcMsgBox1" runat="server" UseJQuery="True" />
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" style="float: left">
        <ContentTemplate>
        <div class="style2">               
            <asp:GridView ID="dgvDSBangCap" runat="server" AutoGenerateColumns="False" 
                Width="80%" DataSourceID="DSBangCap" 
        onrowdatabound="dgvDSBangCap_RowDataBond" CellPadding="4" ForeColor="#333333" 
                GridLines="None" >
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="MaBangCap" HeaderText="Mã bằng cấp" 
                        SortExpression="MaBangCap" >
                    </asp:BoundField>
                    <asp:BoundField DataField="TenBangCap" HeaderText="Tên bằng cấp" 
                        SortExpression="TenBangCap" >
                    </asp:BoundField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:ImageButton ID="imgbtXem" ImageUrl="~/Scripts/Image/Xem.jpg" Width="18px" Height="18px" runat="server" OnClick="imgbtXem_Click" />
                            <asp:ImageButton ID="imgbtSua" ImageUrl="~/Scripts/Image/Sua.jpg" Width="18px" Height="18px" runat="server" OnClick="imgbtSua_Click" />
                            <asp:ImageButton ID="imgbtXoa" ImageUrl="~/Scripts/Image/Xoa.jpg" Width="18px" Height="18px" runat="server" OnClick="imgbtXoa_Click" />                                  
                            <%--&nbsp;
                            <asp:LinkButton ID="libnXoa" CommandArgument='<%#Eval("MaBangCap") %>' OnClientClick="return confirm('Bạn có muốn xóa loại bằng này không ?')" runat="server" OnClick="libnXoa_Click">Xóa</asp:LinkButton>
                            &nbsp;
                            <asp:LinkButton ID="libnSua" CommandArgument='<%#Eval("MaBangCap") %>' runat="server" OnClick="libnSua_Click">Sửa</asp:LinkButton>
                            &nbsp;
                            <asp:LinkButton ID="libnChiTiet" CommandArgument='<%#Eval("MaBangCap") %>' runat="server" OnClick="libnChiTiet_Click">Chi Tiết</asp:LinkButton>--%>
                        </ItemTemplate>
                </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center"/>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
            <asp:ObjectDataSource ID="DSBangCap" runat="server" SelectMethod="LayTatCa" 
                TypeName="BusinessLogicLayer.BangCapBLL"></asp:ObjectDataSource>
            <p><sbc:sbcMsgBox ID="sbcMsgBox2" runat="server" UseJQuery="True" /></p>
                
            </div>
            </ContentTemplate>
        </asp:UpdatePanel>

</asp:Content>
